package com.weishu.house.mapper;

import com.weishu.house.entity.SfContract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weishu.house.model.RequestSearchSfContractsDto;
import com.weishu.house.model.RequestSearchSfsDto;
import com.weishu.house.model.ResponseHouseInfoDto;
import com.weishu.house.model.ResponseSearchSfsDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gao
 * @since 2021-05-25
 */
@Repository
public interface SfContractMapper extends BaseMapper<SfContract> {

    /**
     *
     * @Description:查询收房合同信息
     * @parm @param pagination
     * @parm @param requestSearchSfContractsDto
     * @parm @return 参数
     * @return 返回值说明
     */
    List<SfContract> searchSfContracts(@Param("requestSearchSfContractsDto") RequestSearchSfContractsDto requestSearchSfContractsDto);

    /**
     *
     * @Description:查询收房合同分页List 续约
     * @parm @param  requestSearchSfContractsDto参数
     * @return 返回值说明
     */
    List<ResponseHouseInfoDto> searchSfListByXy(@Param("requestSearchSfsDto")RequestSearchSfsDto requestSearchSfsDto);


    /**
     * 收房合同查询
     * @author gdw
     * @param sfContract
     * @return
     */
    List<SfContract> selectSfContract(SfContract sfContract);
}
